var APP=is_app();
var CustomerID =getcookie("CustomerID");
var cert_td=false,certNo_td=false,rap_td=false,discount_td=false,USDperPrice_td=false,USDprice_td=false,place_td=false,RMBperPrice_td=false,RMBprice_td=false;
var OriginSN_td=false;
var SN_td=false;
var CustomerRights=getcookie("CustomerRights");//客户权限
var Discounts=getcookie("Discounts");//客户折扣
if(Discounts=="" || Discounts==null){
    Discounts=1;
}
if(CustomerRights=="" || CustomerRights==null){//为了给APP做兼容
    
}else{
    var power=CustomerRights.split(",");
   for(var i=0;i<power.length;i++){
       var data_power=power[i];
       if(data_power=="1"){//证书
           cert_td=true;
       }else if(data_power=="2"){//证书号
           certNo_td=true;
       }else if(data_power=="3"){//rap
           rap_td=true;
       }else if(data_power=="4"){//退点
           discount_td=true;
       }else if(data_power=="5"){//$/ct
           USDperPrice_td=true;
       }else if(data_power=="6"){//$/pcs
           USDprice_td=true;
       }else if(data_power=="7"){//所在地
           place_td=true;
       }else if(data_power=="8"){//￥/ct
           RMBperPrice_td=true;
       }else if(data_power=="9"){//￥/pcs
           RMBprice_td=true;
       }else if(data_power=="10"){//原货号
           OriginSN_td=true;
       }else if(data_power=="11"){ //货号
           SN_td=true;
       }
   }    
}